Check out this example page: http://pub.c-o2.net/address.htm
Notice that the address tag is contained within the paragraph tag. However, even though it has a display: inline; style, it is still acting like a block element.
Now, view source in either browser. All seems okay, but, in Firefox, select all the text on the page and right-click, View Selection Source... the address tag has been moved outside of the paragraph tag!!
Anyone encountered this before? I've done some research and it seems the address tag has a bit of an incompatibility history.
Address element madness
Very interesting and slightly twilight zone ish, never seen that happen before.
Wonder if anyone has an explanation for it.
Hugo.
Address element madness
Have you considered that a <p> may not contain an <address>?
Just because you want to display as inline does not make it an inline element. Maybe Moz was just looking out for you
cheers,
gary
Address element madness
I don't think that's the issue. IE is also doing the same thing, and we know that does definitely not look out for us! :roll:
There's very decent sematic reasons for wanting an inline address tag.
This has to be a bug?
Address element madness
Hi c02,
Strange.
I haven't played around much with address tags before.
It acts as if the p was closed before the address starts.
If you put borders around the p and address and add text after the address you can see it is acting as an inline element it just that the browser, firefox in my case, seems to think the paragraph is closed.
Re: Address element madness
Notice that the address tag is contained within the paragraph tag. However, even though it has a display: inline; style, it is still acting like a block element.
Address element madness
Hi c02,
Strange.
I haven't played around much with address tags before.
It acts as if the p was closed before the address starts.
If you put borders around the p and address and add text after the address you can see it is acting as an inline element it just that the browser, firefox in my case, seems to think the paragraph is closed.
If you view the source of a selected area, it reflects the correction.
cheers,
gary