Here's a trick?
Turning the textarea tag into an empty replaced element and hey presto it becomes a window into your soul, acting like an object or iframe displaying your pages source code!
And it validates!!! well Tidy validates it.
How did I stumble on this? well I have my off days when my fingers type gibberish from my addled mind which momentarily gets confused as to what control one was meant to be writing
put it above the DTD and
put it above the DTD and it will show the entire source code . . .
it's gets better and
it's gets better and better! but does that validate?
Do you think I can publish?
Do you think I can publish? was thinking I might have found my claim to fame I'll probably call it 'Hugo's Box' 'Hugo sourceTag' or 'The door tag'
"Hugo's Box" sounds awesome in a Pandora's Box kind of way.
What an awesome thing to discover. Does it happen in every browser? And have you any idea why it does it?
haven't got a clue how it
haven't got a clue how it happens, but you should have seen me staring at the screen for about a minute going "eh, what..what's that" talk about puzzled, didn't occur to me that I had made a complete hash of the markup
Sadly I realised that in reality it can't be used as it terminates all further parsing of markup below it at least within body yet you have said that it displayed your DTD?
It checks out in Mozi IE and Opera so it's not a browser quirk as such.
It will only display the DTD
It will only display the DTD (and the entire head section to boot) if you put it above the doctype.
But that has no chance of validating