Skip to main content

Bug Tracker

Side navigation

#8579 closed feature (wontfix)

Opened March 21, 2011 05:34PM UTC

Closed March 21, 2011 06:20PM UTC

Last modified March 24, 2011 09:47PM UTC

jsonml core support

Reported by: trev.norris@gmail.com Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

I would like to be able to build out a DOM structure using JSONML syntax, using the handle of passing an array of arrays to jQuery(). Like the following:

jQuery([['div', {'class': 'myDiv', click: function() {
    // do something
}], ['p', 'paragraph text']]).appendTo('body');

I like that jQuery will allow me to build a single element with attributes and events, but it would be nice to be able to do that with more complex DOM structures.

Attachments (0)
Change History (3)

Changed March 21, 2011 06:20PM UTC by addyosmani comment:1

resolution: → wontfix
status: newclosed

Thanks for submitting a ticket to the jQuery Bug Tracker. We've reviewed your enhancement request and feel that there would not be a huge benefit (nor enough of a demand from the community) for this feature to be considered for inclusion. Should enough of the community ask for it however, we will of course consider re-evaluating.

Changed March 21, 2011 06:25PM UTC by trev.norris comment:2

cool. for what it's worth, I built the functionality and put it into the following pull request: https://github.com/jquery/jquery/pull/281 (forgot to mention that when I created the ticket).

Changed March 24, 2011 09:47PM UTC by dmethvin comment:3

This would be best done as a plugin.