Skip to main content

Bug Tracker

Side navigation

#13701 closed feature (worksforme)

Opened April 01, 2013 02:18AM UTC

Closed April 03, 2013 06:00PM UTC

Add shtml method

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

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 ( in order to avoid breaking web compatibility across the extensive range of environments.

My suggestion is to consider returning only valid HTML2.0 markup ( 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


Attachments (0)
Change History (12)

Changed April 01, 2013 02:25AM UTC by dmethvin comment:1

owner: →
status: newpending

Can you provide a test case, preferably one using a


Changed April 01, 2013 01:09PM UTC by anonymous comment:2

+1. Really need this for emails.

Changed April 01, 2013 01:50PM UTC by comment:3

I don't get this feature request. Please explain:

1. What is the connection between HTML 2.0 and SSI?

2. Should the example presented work vice-verse?

3. Can you provide some real life scenarios?

Changed April 01, 2013 01:56PM UTC by rvision comment:4


Changed April 01, 2013 02:08PM UTC by earl3s comment:5

I've run into a few scenarios with the blink tag that I could have used this on. +1 for me.

Changed April 01, 2013 02:30PM UTC by rwaldron comment:6


Changed April 01, 2013 02:51PM UTC by comment:7


Changed April 01, 2013 03:00PM UTC by anonymous comment:8

This is genius! We could also provide an API to build layouts using <TABLE>

Changed April 01, 2013 03:29PM UTC by anonymous comment:9

Is the missing closing angle bracket on the


part of the spec? I need to review my regexes…

Changed April 03, 2013 03:05PM UTC by ryanttb comment:10

jsFiddle of missing shtml function for setting content, plus failing html function to properly parse SSI instructions.

Changed April 03, 2013 03:19PM UTC by ajpiano comment:11

Seems like we can close this now that April Fools is over? :)

Changed April 03, 2013 06:00PM UTC by dmethvin comment:12

resolution: → worksforme
status: pendingclosed