Navigation Menu

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 : insert obsolete attributes #146

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 2 comments
Open

html : insert obsolete attributes #146

GoogleCodeExporter opened this issue Apr 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

txt2tags use such attributes 
align="middle" 
border="0"
That are obsolete considering the W3m validator.

The txt2tags code is just inserting a picture : [/Images/picture.png]

and the output is 

<img align="middle" src="/Images/picture.png" border="0" alt=""/>
This appens with txt2tags 2.6-3



Original issue reported on code.google.com by xavier.cartron@gmail.com on 20 May 2012 at 11:57

@GoogleCodeExporter
Copy link
Author

align="middle" is needed to align inline images inside a paragraph and 
border="0" to avoid the ugly blue border around the image when it was used as a 
link.

Both are included to improve the default page appearance in HTML target, when 
using no CSS.

When using --css-sugar, or other HTML targets (html5, xhtml) these attributes 
should not be included.

txt2tags -t html  -->  Plain HTML with a few presentation tags/attributes

txt2tags -t html5  --> Plain HTML, no presentation tags/attributes (must be 
done with CSS)

If any other target except 'html' is using those attributes, they must be 
removed.

Original comment by aureliojargas@gmail.com on 26 Jul 2012 at 4:38

@GoogleCodeExporter
Copy link
Author

Before removing these attributes, a better solution would be to use the <span> 
to include the css.
The idea would be to have : 

<span style="align:middle;border:0">the link to the picture</span>

Original comment by xavier.cartron@gmail.com on 7 Sep 2012 at 10:49

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