Opened 16 years ago
Closed 16 years ago
#3693 closed Bug (wontfix)
dom.element.getAttribute returns unnormalized style properties
Reported by: | Tobiasz Cudnik | Owned by: | Tobiasz Cudnik |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.0 |
Component: | General | Version: | |
Keywords: | Confirmed Review- IE webkit | Cc: |
Description
In some cases IE8 and webkit returns uppercases css properties after getAttribute('style'). To prevent this, place for browser-wide code should be introduced to this method and there the css normalization could be done.
Attachments (1)
Change History (10)
comment:1 Changed 16 years ago by
Owner: | set to Tobiasz Cudnik |
---|---|
Status: | new → assigned |
Changed 16 years ago by
Attachment: | 3693.patch added |
---|
comment:2 Changed 16 years ago by
Keywords: | Confirmed Review? IE webkit added |
---|
comment:3 follow-up: 5 Changed 16 years ago by
Keywords: | Review- added; Review? removed |
---|
comment:4 Changed 16 years ago by
There fix impacts on performance. Can you point use to a practical usage of it? Do we have any issue in the editor that is related to it?
comment:5 Changed 16 years ago by
Replying to garry.yao:
The jQuery chaining coding style is convention compliant at L411, which means line break should not happen before dot.
For that case, the coding style helps on readability, so it should be acceptable (this rule is also part of our coding styles).
comment:6 follow-up: 7 Changed 16 years ago by
It's used by L730 of styles plugin, and actually, there's very few places of our codebase is retrieving 'style' attribute, so PF would not be a big problem.
// The 'class' element value must match (#1318). if ( attName == 'class' && element.getAttribute( attName ) != attributes[ attName ] ) continue;
comment:7 Changed 16 years ago by
Replying to garry.yao:
It's used by L730 of styles plugin
:? Sorry but, L730 is talking about the "class" attribute, and this ticket is related to the "style" attribute.
comment:8 Changed 16 years ago by
So what's the status of this ticket ? If this fix is unnecessary then TC element.html should be fixed, because it relays on exact results from getAttribute( 'style' ).
comment:9 Changed 16 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
We don't need to fix things simply to make TCs pass. They must be useful, and they must mainly impact on the editor features. Otherwise we instead have TCs to get fixed.
If you see any part of the code that may be impacted by this, then please reopen this ticket with more details.
The jQuery chaining coding style is convention compliant at L411, which means line break should not happen before dot.