1.

classPrefix is used when _____________(a) it is mandatory prefix before all the classes(b) class name clashes(c) when there is no any class in the code(d) not mandatory it depends on userI had been asked this question in an online quiz.The origin of the question is Adding HTML features safely with Modernizr in chapter HTML Images & Web Page Files of HTML

Answer»

Right answer is (b) CLASS name clashes

Best explanation: If modernizr’s class NAMES are clashing with already EXISTING class then we use classPrefix inside the configuration. It works same as hidden detects that adds .hidden class. Syntax is { “classPrefix”: “tee”, “feature-detects”: [“dom/hide”]}, this means INSTEAD of we will GET .



Discussion

No Comment Found

Related InterviewSolutions