Opened 10 years ago
Closed 10 years ago
#13701 closed feature (worksforme)
Add shtml method
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
We know that in order for a web server to recognize an SSI-enabled HTML file and carry out necessary instructions, the filename should end with a special .shtml extension.
It is therefore obvious that lack of shtml
method in jQuery is a glaring mistake, and should be added as soon as possible.
Note that jQuery already has html
method but not shtml
one -- an inconsistency that should be avoided at all cost.
We should carefully plan the exact behavioral differences between new shtml
method and existing html
method (http://api.jquery.com/html/) in order to avoid breaking web compatibility across the extensive range of environments.
My suggestion is to consider returning only valid HTML2.0 markup (http://www.w3.org/MarkUp/html-spec/html-spec_toc.html) such as:
el.html(); // <span style="color:red;font-size:7px;font-weight:bold;text-decoration:underline">word</span> el.shtml(); // <B><U><FONT SIZE=7 COLOR=RED>word</FONT></U></B
Change History (12)
comment:1 Changed 10 years ago by
Owner: | set to kangax@… |
---|---|
Status: | new → pending |
comment:3 Changed 10 years ago by
I don't get this feature request. Please explain:
- What is the connection between HTML 2.0 and SSI?
- Should the example presented work vice-verse?
- Can you provide some real life scenarios?
comment:5 Changed 10 years ago by
I've run into a few scenarios with the blink tag that I could have used this on. +1 for me.
comment:8 Changed 10 years ago by
This is genius! We could also provide an API to build layouts using <TABLE>
comment:9 Changed 10 years ago by
Is the missing closing angle bracket on the
</B>
part of the spec? I need to review my regexes…
comment:10 Changed 10 years ago by
jsFiddle of missing shtml function for setting content, plus failing html function to properly parse SSI instructions.
comment:12 Changed 10 years ago by
Resolution: | → worksforme |
---|---|
Status: | pending → closed |
Can you provide a test case, preferably one using a
<marquee>
tag?