Last modified: 2010-11-19 23:11:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28019, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26019 - Underscore is not allowed as the initial character in tag attributes (tag extension)
Underscore is not allowed as the initial character in tag attributes (tag ext...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.17.x
All All
: Normal minor (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-19 22:40 UTC by vinaur
Modified: 2010-11-19 23:11 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description vinaur 2010-11-19 22:40:04 UTC
When creating tag extensions, attribute names with underscore as the initial character (e.g. _attr, _file, etc.) are not recognized as valid attributes. This is a valid attribute name according to W3C XML standard (http://www.w3.org/TR/REC-xml/#NT-NameStartChar), which, if I understand correctly, mediawiki tries to comply with.

I don't see a reason why these attributes should not be allowed.
Comment 1 Sam Reed (reedy) 2010-11-19 22:44:01 UTC
Is this actually an API specific bug? The parser tag seems wrong (removing). Also, you're testing again 1.15.5? :S
Comment 2 vinaur 2010-11-19 23:11:26 UTC
My apologies. I tested it in the latest SVN version and underscore has been added as a valid first character. Non-english characters are still invalid, but that's a different issue (I have seen some comments about that on the wikimedia website). Sorry once again, I should have checked.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links