Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Quoting attribute values in HTML

by dorward (Curate)
on Dec 30, 2008 at 20:47 UTC ( #733340=note: print w/ replies, xml ) Need Help??


in reply to Re: How to extract an email address from a mailto URL?
in thread How to extract an email address from a mailto URL?

Also, older HTML allowed you to not quote the information after the equal sign in some circumstances.

Newer HTML too; it is only XHTML that makes quoting attribute values mandatory in all circumstances.

Since email addresses will include an @ character, the attributes are mandatory in this case.

That said, it isn't as if nobody ever breaks the rules, so it is generally a good idea to write code that can cope (unless you know that the incoming data won't have that problem).


Comment on Quoting attribute values in HTML

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://733340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (16)
As of 2015-07-30 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls