- This topic has 7 replies, 3 voices, and was last updated 13 years, 9 months ago by Larry D. Wilson.
-
AuthorPosts
-
michael_j_cookMemberHi,
I upgraded to MyEclipse 9 from MyEclipse 8.6. I’ve seen some postings indicating there is HTML5 support included e.g. http://www.genuitec.com/blog/?p=2769 . But, I don’t see an HTML5 perspective, and I don’t see any templates specific to HTML5 within the new IDE.
Is there a document somewhere which shows how to use new HTML5 functionality?
Thanks,
Mike
[/url]
Brian FernandesModeratorMike,
We won’t be creating a separate perspective dedicated to HTML 5, there does not seem to be any need for one, the MyEclipse perspective should do as well.
As far as templates are concerned, we were remiss in not adding an HTML 5 template to our HTML 5 wizard (will be added in our GA release). However, if you use the HTML 5 doctype (<!DOCTYPE HTML>)in your HTML file, you will get content assist for HTML 5 elements.
Please let us know of any additional features that you would like to see.
Larry D. WilsonMemberBrian – curious.
I have <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> at the start of the HTML file, but I have a ton of warnings about HTML5-specific tags (placeholder, minlength, etc) and even non-HTML5 tags (name tag on form, href target, “a” name tag). Same, actually worse, behavior if I just specify <!DOCTYPE html>.
Is there something I’m missing in my setup or library path? Why isn’t MyEclipse recognizing these tags as valid?
I’m running MyEclipse 9M2 on OSX.
Brian FernandesModeratorThanks for the report – we could not reproduce this problem locally, but it is possible that it was fixed along with a series of related fixes that were released as part of 9.0M2a. Please see this link for details on how you can get this update. Could you please apply this update and let us know if you still see the problem?
I also have a few additional questions:
1) What is the extension of your file?
2) What type of project do you have your file in – regular Web or JSF? If the latter, can you create a dummy web project and place the file in it, do you still see the validation errors?
Larry D. WilsonMemberThanks, Brian. I upgraded to 9.0M2 (Build id: 9.0M2-20110209). Regular Web project. Unfortunately, the warnings are still there.
JSP Page, standard HTML warnings:
<form id="commentForm" action="optout.jsp" method="post" name="opt_out">
warns “Undefined attribute name (name).”
<input type="radio" name="optOutType" value="Campaign" <% if (optOutType.equals("Campaign")) { %>checked<% } %> /> Campaign Only<br />
warns “Undefined attribute value()”
JSP Page, HTML5 warnings
<input id="sender_name" name="sender_name" placeholder="Your Name" value="" type="text" maxlength="255" class="required" minlength="5" tabindex="2" />
warns:
Multiple annotations found at this line:
– Undefined attribute name
(minlength).
– Undefined attribute name
(placeholder).placeholder is definitely a standard HTML5 input attribute, but apparently I’m using minlength for jquery – I don’t see that as a valid attribute on http://www.w3schools.com/html5/tag_input.asp
Form “name” attribute and form input “value” attributes don’t warn on html extension files. However placeholder and minlength do.
Brian FernandesModeratorThanks much for checking and responding promptly. We are looking into these issues right now and should have a fix in for MyEclipse 9 GA – thanks for the report!
Brian FernandesModeratorA few additional questions:
1) For the JSP file with the errors you mentioned – exactly what header are you using? What happens if you use the HTML 5 header? (not too sure what you are using now).
2) Are you using the HTML 5 header with the HTML file – when you see the warning for placeholder and minlength?
Larry D. WilsonMemberHeader is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I’ve read that the HTML5 header isn’t needed, but you can use simply
<!DOCTYPE HTML>
which raises quite a few more warnings.
Behavior is the same with JSP and HTML for the HTML5-specific attribute placeholder.
-
AuthorPosts