HTML 5 Indentation support for Xcode
| Originator: | subdigital | ||
| Number: | rdar://14678320 | Date Originated: | 07-Aug-2013 05:05 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
Xcode 5's indentation gets confused when you have tags that don't have closing counterparts, which are valid in HTML 5.
Steps to Reproduce:
Paste the following valid HTML 5 into a new file, name it test.html, and open it in Xcode.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="styles.css" type="text/css">
<title>Xcode!</title>
</head>
<body>
<h1>foo</h1>
</body>
</html>
Expected Results:
All the tags inside of <head> should be indented at the same level.
Actual Results:
<meta> and <link> are treated as opening tags, so the rest of the document gets indented incorrectly.
Notes:
It is standard HTML 5 to have some tags not have a self closing slash, such as, for instance…
this "<br>"
not this: "<br />"
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!