HighDots Forums  

Problem in auto-generated HTML

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Problem in auto-generated HTML in the HTML forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Jack Crenshaw
 
Posts: n/a

Default Re: Problem in auto-generated HTML - 06-30-2009 , 11:00 AM






Ben C wrote:
Quote:
On 2009-06-28, C A Upsdell <cupsdell (AT) nospam (DOT) not> wrote:
Jack Crenshaw wrote:
Jonathan N. Little wrote:
Jack Crenshaw wrote:
I've encountered a problem with HTML files generated by Mathcad using
the "save as HTML" option. Among other things, Mathcad allows for
text, math, and graph objects. When I try to display the generated
file in Firefox, the equations overlay the preceding text.
Also not mentioned is that "style" properties created by this Mathcad
are invalid as well

The problem seems to be the use of constructs like this:

div style="position:absolute;top:96;left:20"
^^ ^^
Position 96 what? Bananas? Left what?
Pixels. Which right off the bat seems like a Bad Idea, right?
NOT pixels. This is a absolutely crucial point: with CSS, the units
*must* be specified unless the value is zero, and if the units are
omitted with a non-zero value, the CSS is invalid, and should (according
to the standards) be ignored.

The problem is that IE traditionally does NOT ignore such CSS:
traditionally IE has assumed that the units are pixels if the units are
not specified, but this is simply wrong, and has resulted in IE
*apparently* displaying pages correctly when standards compliant
browsers do not.

I think they mostly allow that to mean pixels in quirks mode, which my
guess is this content is going to be in (if you're clueless enough to
emit crap like that you probably don't emit a DOCTYPE at all).
How did you guess?

Jack

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.