Allegro.cc - Online Community

Allegro.cc Forums » Allegro.cc Comments » xhtml output

This thread is locked; no one can reply to it. rss feed Print
xhtml output
Matthew Leverton
Supreme Loser
January 1999
avatar

XHTML output is now enabled for all browsers that support it. (Translation: not Internet Explorer.) This is not trivial, as it means each page must conform to strict XML standards.

If you come across a page that is not well formed, you will get a parser error. I've been using XML myself on a.cc for a while, and I know there are many of them. You should do two things if that happens:

  • report the url on this thread, or to me via PM when this thread is closed.

  • append ?xml=off (or &xml=off) to the URL to temporarily disable XML output

Note that the &foo; HTML entities (e.g., —) are not valid XHTML and are not translated. The number codes will still work. I will some day map the HTML entities to number codes automatically for convenience.

Google maps on profile pages are not working yet.

The switch to XML is primarily because I'm a masochist and secondarily because it forces the strictest adherence to the standards, eliminating most cross-platform issues. It will also let me enable MathML, which I have been testing.

Firefox's copy and paste works properly in XML mode, so the missing line breaks in code boxes will no longer be a problem.

(You'll need to refresh before Spell Check works.)

LennyLen
Member #5,313
December 2004
avatar

I've been using XML myself on a.cc for a while, and I know there are many of them.

There can't be too many left. I haven't seen any parsing errors for ages.

ReyBrujo
Moderator
January 2001
avatar

You should add a Valid XHTML link at the bottom (with the referral check against W3C checker).

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

Matthew Leverton
Supreme Loser
January 1999
avatar

The XML is well formed, but there are plenty of XHTML violations.

Update: profile maps are working.

Shravan
Member #10,724
February 2009
avatar

{"name":"599847","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/6\/1639d53d40eeaabf7daf82ce0cdb95a3.jpg","w":738,"h":562,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/6\/1639d53d40eeaabf7daf82ce0cdb95a3"}599847

gnolam
Member #2,030
March 2002
avatar

Note that the &foo; HTML entities (e.g., —) are not valid XHTML and are not translated.

Aww. :(

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

MiquelFire
Member #3,110
January 2003
avatar

I actually thought they were XHTML valid actually. Maybe it's the XML parser not liking them when you don't use a doctype.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

Matthew Leverton
Supreme Loser
January 1999
avatar

I actually thought they were XHTML valid actually. Maybe it's the XML parser not liking them when you don't use a doctype.

I agree (and in fact the doctype I'm using has them specified), but Opera refuses to display them.

MiquelFire
Member #3,110
January 2003
avatar

Ah, it's Opera's fault. Okay then.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

Shravan
Member #10,724
February 2009
avatar

{"name":"599863","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/0\/b06223ea6b99310806e737adc40b1c24.jpg","w":940,"h":596,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/0\/b06223ea6b99310806e737adc40b1c24"}599863

Matthew Leverton
Supreme Loser
January 1999
avatar

It would be simpler if you just pasted in the URL (and the error message if so inclined) in plain text.

ReyBrujo
Moderator
January 2001
avatar

XML Parsing Error: not well-formed
Location: http://www.allegro.cc/depot/KiGB/
Line Number 220, Column 16:
      ~ Mario & Yoshi<br />
---------------^

--
RB
光子「あたしただ…奪う側に回ろうと思っただけよ」
Mitsuko's last words, Battle Royale

SiegeLord
Member #7,827
October 2006
avatar

http://www.allegro.cc/iotd/view/2005-03-10

XML Parsing Error: mismatched tag. Expected: </img>.
Location: http://www.allegro.cc/iotd/view/2005-03-10
Line Number 81, Column 3:
</div><div style="border-top: dashed #999 1px; margin: 0.5em; padding: 0.5em;" id="c-472">
--^

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Peter Wang
Member #23
April 2000

Currently the front page of the forums has this: "Allegro &amp; Windows 7"

Goalie Ca
Member #2,579
July 2002
avatar

This page is completely broken for me:
http://www.allegro.cc/forums/thread/602399/840964#target
error on line 100 at column 146: Encoding error

-------------
Bah weep granah weep nini bong!

bamccaig
Member #7,536
July 2006
avatar

Thomas Fjellstrom
Member #476
June 2000
avatar

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Vanneto
Member #8,643
May 2007

In capitalist America bank robs you.

GullRaDriel
Member #3,861
September 2003
avatar

When posting (I mean after clicking on 'post') I often have that one, which goes away after a refresh (and my post is taken in account)

SiegeLord said:

XML Parsing Error: mismatched tag. Expected: </br>.
Location: http://www.allegro.cc/forums/reply/602508
Line Number 60, Column 233: <td colspan="2"><div style="margin: 1em; text-align: center; border: solid red 1px; padding: 1em;">Slow down ... you are over working your fingers, your keyboard, and MY SERVER! :)<br><br>Only one post is allowed per 30 seconds.</div></td>

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Neil Walker
Member #210
April 2000
avatar

doubt this is a bug, just by design and nothing to do with the xhtml ;)

but on the hover doesn't work with code:

{"name":"600001","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/3\/d384072340152a5915e138b9986ee6b7.png","w":324,"h":144,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/3\/d384072340152a5915e138b9986ee6b7"}600001

http://www.allegro.cc/forums/thread/602498

Neil.
MAME Cabinet Blog / AXL LIBRARY (a games framework) / AXL Documentation and Tutorial

wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie

GullRaDriel
Member #3,861
September 2003
avatar

It IS a bug. He forgot two / ;-p

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Vanneto
Member #8,643
May 2007

I am 100% sure I got an error here:
http://www.allegro.cc/forums/board/4

Problem is, when I refreshed, it went away... :P

In capitalist America bank robs you.

Go to: