Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8579 closed feature (wontfix)

jsonml core support

Reported by: [email protected] 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.

Change History (3)

comment:1 Changed 12 years ago by addyosmani

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.

comment:2 Changed 12 years ago by trev.norris

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).

comment:3 Changed 12 years ago by dmethvin

This would be best done as a plugin.

Note: See TracTickets for help on using tickets.