w3c / epub-specs

Shared workspace for EPUB 3 specifications.
Other
305 stars 60 forks source link

deprecated `navigator.epubReadingSystem.name` used in example #2543

Closed npdoty closed 1 year ago

npdoty commented 1 year ago

I believe navigator.epubReadingSystem.name has been deprecated, and replaced with feature detection, but there is still an example that uses it in "H.2 Scripting contexts".

mattgarrish commented 1 year ago

The script element with the reference can be removed without affecting anything about the example itself. Not sure why it was put in there.

iherman commented 1 year ago

I think having the script element kept there is better; good to have an example for such a construction just to show. I simply exchanged the usage of the name attribute to hasFeature and slightly reformulated the script content.

Thanks @npdoty. See #2544