WebPlatformTest / HTML5test

How well does your browser support HTML5?
https://html5test.com
MIT License
995 stars 193 forks source link

Check for new elements is flawed #5

Closed NielsLeenheer closed 14 years ago

NielsLeenheer commented 14 years ago

html5test.com check for elements is flawed. WebKit's toString is HTMLElement for any unknown element. toString seems fragile anyway

/via pornelski

NielsLeenheer commented 14 years ago

You are correct, but being an HTMLElement is correct for new HTML5 elements, regardless if it also true for unknown elements.

One thing I could add is to check for the correct display type according to 10.2.2 of the HTML5 spec.

NielsLeenheer commented 14 years ago

Added a check for presentational styles in 06f268397fbd5b215e3c6c49f525958ddc32d90f