1.

Which method takes a string that contains an unordered set of unique space-separated tokens that are case-sensitive, representing types?(a) document.getItems(b) element.itemProp(c) collection.namedItem(d) object.itemrefI got this question during an online interview.Question is from Microdata topic in section HTML Fundamentals of HTML

Answer»

The correct answer is (a) document.getItems

To elaborate: When called, the method MUST return a LIVE NodeList object CONTAINING all the elements in the document, in tree ORDER, that are each top-level MICRODATA items whose types include all the types specified in the method’s argument, having obtained the types by splitting the string on spaces.



Discussion

No Comment Found

Related InterviewSolutions