IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Makes sense for the most part
But the last question is why the XHTML acts different for DIV elements than the HTML 4.0 transitional documents? This occurs in both browsers and I'm not sure why the change.

Also, while I'm at it: Is there a DOM way of doing things with regard to measuring coordinates relative to the viewable area? What I need is to measure the view resolution but the following attributes are not DOM'd:
  • offsetHeight
  • clientHeight
  • clientWidth
  • offsetWidth
  • clientTop
  • clientWidth
So without these, how is one supposed to know how to do calculations on where the element is and where it should be.
New Re: Makes sense for the most part
But the last question is why the XHTML acts different for DIV elements than the HTML 4.0 transitional documents? This occurs in both browsers and I'm not sure why the change.

I'm not sure about your specific example, but there are a lot of little differences between XHTML and HTML 4.x in the obscure corners of the language. This is not always because of differences in the standards. Both Microsoft and the Mozilla foundation took XHTMl as a chance to fix some long standing bugs in their rendering that they didn't fix previously because it would break existing pages.

Jay
New Know it fixes problems related to well-formedness
But I ran the 4 examples though the W3C validator and they all check out. Which begs the question of why the height attribute on the DIV tag is ignored in the XHTML document.
New Seems to be the lack of unit identifier
The CSS spec requires that measurements have a unit identifier, such as px for pixels or pt for points.

It appears to be a case where Firefox just assumes pixels when rendering HTML but ignores the incorrect declaration when rendering in XHTML. This passes the W3 validator because the CSS validator is a seperate utility.

If you put ".div {height:20;width:100%;overflow:auto;}" into the CSS validator it kicks it out for not having a unit on the height.

Jay
New That was what I was trying to grok. Thanks.
New Have a rummage in here.
[link|http://www.quirksmode.org/|http://www.quirksmode.org/]

There's info in there about positioning and locating elements. Hint: it's not easy.

Wade.

Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please

-- "Anything but Ordinary" by Avril Lavigne.

     Question on Height attributes for DIV/SPAN tags - (ChrisR) - (12)
         OS X Firefox has scrollbars for HTML 4.0 DIV - (SpiceWare)
         Re: Question on Height attributes for DIV/SPAN tags - (admin) - (1)
             That'll do the trick. Thanks. -NT - (ChrisR)
         Height means nothing on a span tag - (JayMehaffey) - (6)
             Makes sense for the most part - (ChrisR) - (5)
                 Re: Makes sense for the most part - (JayMehaffey) - (3)
                     Know it fixes problems related to well-formedness - (ChrisR) - (2)
                         Seems to be the lack of unit identifier - (JayMehaffey) - (1)
                             That was what I was trying to grok. Thanks. -NT - (ChrisR)
                 Have a rummage in here. - (static)
         20 what? - (ubernostrum) - (1)
             Well, you'd think that have a default. - (ChrisR)

Aw, good for him.
44 ms