On Tuesday, April 23, 2013 3:50:01 PM UTC-4, San wrote:
>
> On Tue, Apr 23, 2013 at 10:23 AM, Gribnif 
> <[email protected]<javascript:>> 
> wrote:
> > So, if you instead try this:
> <a href="<?php createURL('myKeyword') ?>"> Lots of link text, image code, 
> etc. here </a>
> > it validates successfully.
>
> Not in my BBEdit, it doesn't. I commented out my code and copy/pasted in 
> your code instead. Then I invoked the code checker. It gave me this error 
> message:
>
> Value of attribute “href” for element “<a>” is invalid; URL path needs 
> encoding (“%3C?php%20createURL('myKeyword')%20?%3E”).
>

Interesting. Here's the exact code I ran through the checker, and it worked 
without error. Perhaps it's because I went with BBEdit's default 
"loose.dtd"?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Untitled</title>
</head>
<body>
<a href="<?php createURL('myKeyword') ?>"> Lots of link text, image code, 
etc. here </a>

</body>
</html>

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to