[Javascript] Unknown runtime error
Troy III Ajnej
trojani2000 at hotmail.com
Thu Aug 21 00:59:33 CDT 2008
Hi Nagendra,
This is an example of bad nesting of html tags.
Are you presuming that your code is correct?
<nobr> is a proprietary html tag.
Never a part of any standard.
Have you tested if <nobr> can have children?
On what base do you expect that you can put a block level container
element inside a nobreak tag instrucion, when next first encountered
element is a generically line-breaking element.
Using <nobr><div>... is frankly illegall, but
<div><nobr>...content...</nobr>...content...</div> might be.
Try nesting your elements the correct way.
Cause there's no logic, nor a practicall reason in placing a <div> inside
a <nobr> tag. For what purpose?
The
<div id='aaa' style='display:inline;'><nobr>...</nobr></div>will work hust fine, but will not validate.
consider using css white-space:no-wrap instead.
Regards
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Troy III progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Date: Tue, 19 Aug 2008 22:01:48 -0700> From: ovsnk-reachme at yahoo.com> To: javascript at lists.evolt.org> Subject: [Javascript] Unknown runtime error> > Hi > The following sample throws "Unknown runtime error", any ideas to fix this?> <html>> <head>> <script>> function foo(){> document.getElementById('aaa').innerHTML="<nobr>aaa</nobr>";> }> </script>> </head>> <body onload="foo();">> <nobr><div id='aaa' style='display:inline;'></div></nobr>> </body>> </html> > thanks> Nagendra Oleti> _______________________________________________> Javascript mailing list> Javascript at lists.evolt.org> http://lists.evolt.org/mailman/listinfo/javascript
_________________________________________________________________
Get thousands of games on your PC, your mobile phone, and the web with Windows®.
http://clk.atdmt.com/MRT/go/108588800/direct/01/
More information about the Javascript
mailing list