pe.js revision a3e011a6940a2707d43148e12f3d3cd6fd388794
DOT = '.',
DATATABLE = 'datatable',
function EnhanceMarkup() {}
Y.mix(EnhanceMarkup, {
HTML_PARSER: {
_tableNode : '_findHTMLTableNode',
_captionNode: '_findHTMLCaptionNode',
_theadNode : '_findHTMLTheadNode',
_tfootNode : '_findHTMLTfootNode',
_tbodyNode : '_findHTMLTbodyNode',
columns: '_parseHTMLColumns',
caption: '_parseHTMLCaption',
summary: '_parseHTMLSummary'
}
});
initializer: function (config) {
if (config) {
// Node references from HTML_PARSER to support progressive
// enhancement, but aren't stored as attributes.
}
},
_findHTMLTableNode: function (srcNode) {
srcNode :
},
_findHTMLCaptionNode: function (srcNode) {
},
_findHTMLTheadNode: function (srcNode) {
},
_findHTMLTfootNode: function (srcNode) {
},
_findHTMLTbodyNode: function (srcNode) {
},
_parseHTMLColumns: function (srcNode) {
columns = [];
// TODO: if (th.get('colspan')) { => children }
// TODO: use dataset shim when it becomes available
col = {
},
i, match;
if (attributes) {
if (match) {
// Attributes and dataset differ in that data-foo-bar
// and data-fooBar will both become dataset.fooBar.
// Assume the implementer will use the correct casing.
}
}
}
});
},
_parseHTMLCaption: function (srcNode) {
},
_parseHTMLSummary: function (srcNode) {
}
});