Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML break tag breaks (X)HTML compliance #39

Closed
GoogleCodeExporter opened this issue Apr 8, 2015 · 4 comments
Closed

HTML break tag breaks (X)HTML compliance #39

GoogleCodeExporter opened this issue Apr 8, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Issue 47 has been merged into this issue.

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant