W3C home > Mailing lists > Public > www-validator@w3.org > September 2004

</A>

From: Ali Colville <alistair.colville@c2software.com>
Date: Thu, 30 Sep 2004 11:40:49 +0100
To: <www-validator@w3.org>
Message-ID: <001001c4a6d9$f3e65890$1900000a@C2.local>
I have the following code in one of my pages:
 
function displayFindAddress()
{
            d = document.getElementById("FindAddress");
            d.innerHTML = d.innerHTML + "&nbsp;<a href='javascript://'
onclick='return PopUpAddress1()' title='this opens in a new window'>Find
My Address</a>";
}
 
Every time I try to validate it, it says the there is no open <a> tag
for the closing </a>.
 
However, when I change the function to (note the split string around
</a>):
 
function displayFindAddress()
{
            d = document.getElementById("FindAddress");
            d.innerHTML = d.innerHTML + "&nbsp;<a href='javascript://'
onclick='return PopUpAddress1()' title='this opens in a new window'>Find
My Address<" + "/a>";
}
 
The code still works and the validator is happy. Just thought I'd point
this out.
 
Regards,
 
Ali
 
Received on Thursday, 30 September 2004 10:41:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:15 GMT