Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsolete attributes #1491

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NiedziolkaMichal
Copy link
Collaborator

@NiedziolkaMichal NiedziolkaMichal commented Nov 6, 2022

Updating list of obsolete attributes to match WHATWG list.
Every attribute from the list can be found under registerObsoleteAttribute, OBSOLETE_STYLE_ATTRS, or OBSOLETE_GLOBAL_ATTRIBUTES except for:

  • rev - which shares name with RDFa global attribute
  • type attribute in element style - which already has more advanced warning in Assertions.java
  • charset attribute in element script - which is also handled separately in Assertions.java, where it shows warning only if value is other than utf-8.

I removed ConformingButObsoleteWarner class, which is now handled by registerObsoleteAttribute (<script language=javascript> was a duplicate with code in Assertions.java).

I think it would also be good to change value types of all obsolete attributes to string, but this PR is already pretty big, so I skipped it.

This PR relies on #1487, which should be merged first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant