thiagocavaloti / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

HTML break tag breaks (X)HTML compliance #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put the Recapctha control on an ASP.NET Web form
2. Witness the "<br>

        </br>" sequence in the source code generated
3. Understand this breaks (X)HTML compliance

What is the expected output? What do you see instead?

instead : <br/>

What version of the product are you using? On what operating system?

Recaptcha ASP.NET plugin

Please provide any additional information below.

I figured it out : 

In RecapcthaControl.cs at line 150 (or 151?) replace these two lines : 

output.RenderBeginTag(HtmlTextWriterTag.Br);
output.RenderEndTag();

with

output.WriteBreak();

Shorter, faster, more correct ;)

For further reference see http://msdn.microsoft.com/en-us/library/
system.web.ui.htmltextwriter.writebreak.aspx

Original issue reported on code.google.com by rinea.an...@gmail.com on 10 Mar 2009 at 8:47

GoogleCodeExporter commented 9 years ago
Issue 47 has been merged into this issue.

Original comment by adrian.g...@gmail.com on 24 May 2010 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by adrian.g...@gmail.com on 24 May 2010 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by adrian.g...@gmail.com on 25 May 2010 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by adrian.g...@gmail.com on 30 Mar 2012 at 6:16