Opened 13 years ago
Last modified 11 years ago
#8612 confirmed New Feature
DocProps plugin incorrect case handling of META element names — at Initial Version
Reported by: | NicHolt | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Dialogs | Version: | 3.6 |
Keywords: | Cc: |
Description
docprops.js creates a hash table of meta elements, keyed by the name converted to lower case. However, there are several cases of tests such as:
name in hash
which fail if the meta element name is not all in lower case. Fix is to replace several occurrences of the above with:
name.toLowerCase() in hash
Also in setupMeta:
result = ( name.toLowerCase() in hash ) ? hash[ name.toLowerCase() ].getAttribute( 'content' ) || '' : '';