6 replies [Last post]
Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 44 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Here's a trick?

Try writing:

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!!! Smile 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 Sad

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 12 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

put it above the DTD and

put it above the DTD and it will show the entire source code . . .

Verschwindende wrote:
  • CSS doesn't make pies

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 44 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

it's gets better and

Smile it's gets better and better! but does that validate?

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 44 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

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'

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 12 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

Hugo's Box

"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?

Verschwindende wrote:
  • CSS doesn't make pies

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 44 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

haven't got a clue how it

Laughing out loud 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 Smile

Sadly I realised that in reality it can't be used as it terminates all further parsing of markup below it Sad 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.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 12 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

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 Laughing out loud

Verschwindende wrote:
  • CSS doesn't make pies