IdlePhaedrus
Expert Member
- Joined
- Jan 31, 2005
- Messages
- 1,582
Hi There,
Short history: I have a small system, with quite a lot of html stored in a database which is extracted and presented to users.
The html is generally pretty standard as far as I can tell, and IE and Firefox visually render the pages the same most of the time, but the style attributes differently.
With IE, the original style information is displayed when I view the html in a rich text editor such as Free Text Box, FCKEditor or "View Source" , but in FireFox, the style information is it's interpretation thereof. For instance, for a table's td, this original style information is displayed in IE's "View Source":
"border-right: 0.5pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 0.5pt solid; width: 234px; padding-top: 0cm; border-bottom: 0.5pt solid;"
but FireFox changes it to this:
"border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 0.5pt 0.5pt; padding: 0cm 5.4pt; width: 234px;"
I can immediately see that FireFox's interpretation of the style attributes is shorter and more readable, and better. No problem with that.
The problem is, FireFox does not display the original stored style information in the text editors, or in view source, but rather it's interpretation of that style information.
So, if my client or one of their users is using IE, and I am using FireFox, and there is a discrepancy with the display of the original HTML between FF and IE, then I cannot debug the original source style attributes in FF.
Then, if I save my interpreted FireFox style attributes back to the database the client or their users using IE suddenly sees a different representation of the original style attributes, which are now different, and that representation may not necessarily be what the original user intended.
This confuses everybody.
While I can see that FF's approach it better, I would prefer to have everyone working off the same page, and obviously in this case it is not happening because FF is forcing it's own view of the world with regard to the style attributes, and I would prefer it if it didn't, is there any way of asking FireFox, politely, not to modify the style attributes in source view?
Thoughts?
Phaedrus
PS, I have looked around the internet for fixes on this issue, but have come out stumped, so I thought I would ask here.
Short history: I have a small system, with quite a lot of html stored in a database which is extracted and presented to users.
The html is generally pretty standard as far as I can tell, and IE and Firefox visually render the pages the same most of the time, but the style attributes differently.
With IE, the original style information is displayed when I view the html in a rich text editor such as Free Text Box, FCKEditor or "View Source" , but in FireFox, the style information is it's interpretation thereof. For instance, for a table's td, this original style information is displayed in IE's "View Source":
"border-right: 0.5pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0cm; border-left: 0.5pt solid; width: 234px; padding-top: 0cm; border-bottom: 0.5pt solid;"
but FireFox changes it to this:
"border-style: none solid solid; border-color: -moz-use-text-color black black; border-width: medium 0.5pt 0.5pt; padding: 0cm 5.4pt; width: 234px;"
I can immediately see that FireFox's interpretation of the style attributes is shorter and more readable, and better. No problem with that.
The problem is, FireFox does not display the original stored style information in the text editors, or in view source, but rather it's interpretation of that style information.
So, if my client or one of their users is using IE, and I am using FireFox, and there is a discrepancy with the display of the original HTML between FF and IE, then I cannot debug the original source style attributes in FF.
Then, if I save my interpreted FireFox style attributes back to the database the client or their users using IE suddenly sees a different representation of the original style attributes, which are now different, and that representation may not necessarily be what the original user intended.
This confuses everybody.
While I can see that FF's approach it better, I would prefer to have everyone working off the same page, and obviously in this case it is not happening because FF is forcing it's own view of the world with regard to the style attributes, and I would prefer it if it didn't, is there any way of asking FireFox, politely, not to modify the style attributes in source view?
Thoughts?
Phaedrus
PS, I have looked around the internet for fixes on this issue, but have come out stumped, so I thought I would ask here.