Re: Unable to access an FAQ page

Hello Chuck,

> On 14 Feb 2021, at 01:40 , Chuck Jackson <seajax@charter.net> wrote:
> 
> When I attempt to validate one of my pages (http://www.douglascountygensoc.org/current_members.html), I get:
> 
> …"As of today, we have <b><i>" + mbrcnt + "</i></b> paid members on the rolls.";
> ✉
> 
> The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
> 
> If this error occurred in a script section of your document, you should probably read this FAQ entry. 
> 
> […]
> 
> So, how am I supposed to "FIX"  the problem?  BTW, the page displays exactly as expected.

Thanks for bringing to our attention the broken link in the FAQ, we’ll fix those.


Regarding your invalid code, I’m relaying the fix from internal discussion:


You need to add a backslash before '/' when using html closing tag in javascript code per: https://www.htmlpedia.org/wiki/Tidy_32

So line 16 of the source code should be:

[[
       document.getElementById("paid").innerHTML = "As of today, we have <b><i>" + mbrcnt + "<\/i><\/b> paid members on the rolls.";
]]


And line 1776 should be:

[[
       document.write("<\/p>");
]]

Coralie

--
Coralie Mercier  -  W3C Marketing & Communications -  https://www.w3.org
mailto:coralie@w3.org +337 810 795 22 https://www.w3.org/People/Coralie/

Received on Friday, 19 February 2021 14:20:39 UTC