Custom element empty attribute disappears

Hello everyone,

I love custom elements (input, meta, link, etc.) for the freedom it gives to make microdata structures.
However, I was trying to troubleshoot microdata and found what seems to be a bug.

If I leave, an attribute like “itemscope”, “required”, etc. empty, it simply disappears from HTML and breaks the schema:


Here is another where I put quotes (since it looks like that when you leave it empty on other elements):


Here you can see those two custom elements outputs:


Here is a read-only link with just the two custom elements.

Am I missing something?

Thank you very much,


The issue was only affecting custom elements, now it’s everywhere!
Schemas that used to be detected are not anymore, I checked and it’s all the itemscope that are removed in the live HTML.

1 Like