Reputation: 573
I am trying to write a js widget which will displayed on diverse websites. The problem is that many times, the widget will be used on websites which will not provide proper doctype declarations and hence will render the pages in quirksmode. When the widget is rendered in quirksmode,the UI breaks up. How do i go about writing HTML that works same in both quirks mode as well as in standards mode
Upvotes: 0
Views: 54
Reputation: 324650
You can't control what mode the host site uses, but you may be able to use an iframe
in which to render your widget.
Upvotes: 1