Hi- > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 27, 2005 5:51 AM > To: [email protected] > Subject: Re: [magnolia-user] Invalid html in mainBar Javascript > > Ah, didn't see that - your right, « is an html character and > can be used in XHTML *if* you include an entity reference - > just like > . > > However, I might suggest that this should be removed from the > mainBar, since the chances of someone importing the entity reference > is slim. For instance, if you wanted to make an XHTML page that > would recognize all of the HTML special entities, you would need to > add this to the top of each page: > > ================================================ > <!ENTITY % xhtml-lat1 SYSTEM > "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"> > <!ENTITY % xhtml-special SYSTEM > "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent"> > <!ENTITY % xhtml-symbol SYSTEM > "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent"> > ================================================= > (entity definition reference: http://www.w3.org/TR/xhtml1/#h-A2 ) > > No, you don't. These entities are included by the xhtml DTD[1]:
<!--================ Character mnemonic entities =========================--> <!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "xhtml-lat1.ent"> %HTMLlat1; <!ENTITY % HTMLsymbol PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "xhtml-symbol.ent"> %HTMLsymbol; <!ENTITY % HTMLspecial PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" "xhtml-special.ent"> %HTMLspecial; -markus [1] http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict > So while these entities are part of the XHTML specification, an > author cannot use them without declaring them... if only to make our > lives just that much more difficult.... > > --ee > > > On Sep 26, 2005, at 8:53 PM, Thomas M. Duffey wrote: > > > Hi Eric, > > > > On Sep 26, 2005, at 8:46 PM, Eric Everman wrote: > > > > > >> <span onmousedown="mgnlShiftPushButtonDown(this);" > >> onmouseout="mgnlShiftPushButtonOut(this);" > >> onclick="mgnlShiftPushButtonClick(this);mgnlPreview(true);" > >> class="mgnlControlButton" style="background:transparent;"> > >> « Preview > >> </span> > >> > >> I guessing that '« Preview' was supposed to be ' > >> Preview'. And of course, even if it were , it > wouldn't work > >> in xhtml. Could this just be removed and replaced with > css padding? > >> > > > > The "laquo" entity is the left double bracket character. Here's a > > good XHTML character entity reference: > > > > http://www.digitalmediaminute.com/reference/entity/ > > > > - Tom > > > > ---------------------------------------------------------------- > > for list details see > > http://www.magnolia.info/en/magnolia/developer.html > > ---------------------------------------------------------------- > > > > > ---------------------------------------------------------------- > for list details see > http://www.magnolia.info/en/magnolia/developer.html > ---------------------------------------------------------------- > ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
