giuem / hexo-filter-crossorigin

Append crossorigin attribute to HTML elements
MIT License
1 stars 0 forks source link

Shouldn't use 'crossorigin="false"' #7

Closed SukkaW closed 4 years ago

SukkaW commented 4 years ago

According to MDN:

An invalid keyword and an empty string will be handled as the anonymous keyword.

giuem commented 4 years ago

https://github.com/giuem/hexo-filter-crossorigin/blob/master/src/appendAttr.ts#L37

When setting crossorigin to false, it will skip processing.

SukkaW commented 4 years ago

Ah, fine!