NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 461 - Optgroup element doesn't accept standard attributes
Optgroup element doesn't accept standard attributes
Classification: Unclassified
Component: HTML parser
All All
: P2 normal
Assigned To: Henri Sivonen
Depends on:
  Show dependency treegraph
Reported: 2009-03-27 20:09 CET by gyrobo
Modified: 2009-03-30 16:09 CEST (History)
1 user (show)

See Also:

Test Case from URL (442 bytes, text/html)
2009-03-27 20:10 CET, gyrobo

Note You need to log in before you can comment on or make changes to this bug.
Description gyrobo 2009-03-27 20:09:48 CET
The HTML Parser reports an error when it encounters an optgroup element containing a standard attribute like ID, CLASS, LANG, etc.

These attributes should be valid for all elements.
Comment 1 gyrobo 2009-03-27 20:10:42 CET
Created attachment 65 [details]
Test Case from URL
Comment 2 Michael[tm] Smith 2009-03-30 09:51:10 CEST
Thanks for catching this. The cause was just an oversight -- I suspect probably a regression due to some patch I submitted that changed the optgroup attribute model.

Anyway, it's fixed now in the source repository:

It may be a few days before that fix actually gets deployed on

Comment 3 Michael[tm] Smith 2009-03-30 16:09:25 CEST
tested with latest deployment, and test case passes, so moving this to resolved/fixed