App-Mxpress-PDF
view release on metacpan or search on metacpan
public/javascripts/ace/worker-html.js view on Meta::CPAN
};
modes.inBody.startTagXmp = function(name, attributes) {
if (tree.openElements.inButtonScope('p'))
this.processEndTag('p');
tree.reconstructActiveFormattingElements();
tree.processGenericRawTextStartTag(name, attributes);
tree.framesetOk = false;
};
modes.inBody.startTagTable = function(name, attributes) {
if (tree.compatMode !== "quirks")
if (tree.openElements.inButtonScope('p'))
this.processEndTag('p');
tree.insertElement(name, attributes);
tree.setInsertionMode('inTable');
tree.framesetOk = false;
};
modes.inBody.startTagVoidFormatting = function(name, attributes) {
tree.reconstructActiveFormattingElements();
tree.insertSelfClosingElement(name, attributes);
tree.framesetOk = false;
};
modes.inBody.startTagParamSourceTrack = function(name, attributes) {
tree.insertSelfClosingElement(name, attributes);
};
modes.inBody.startTagHr = function(name, attributes) {
if (tree.openElements.inButtonScope('p'))
this.endTagP('p');
tree.insertSelfClosingElement(name, attributes);
tree.framesetOk = false;
};
modes.inBody.startTagImage = function(name, attributes) {
tree.parseError('unexpected-start-tag-treated-as', {originalName: 'image', newName: 'img'});
this.processStartTag('img', attributes);
};
modes.inBody.startTagInput = function(name, attributes) {
var currentFramesetOk = tree.framesetOk;
this.startTagVoidFormatting(name, attributes);
for (var key in attributes) {
if (attributes[key].nodeName == 'type') {
if (attributes[key].nodeValue.toLowerCase() == 'hidden')
tree.framesetOk = currentFramesetOk;
break;
}
}
};
modes.inBody.startTagIsindex = function(name, attributes) {
tree.parseError('deprecated-tag', {name: 'isindex'});
tree.selfClosingFlagAcknowledged = true;
if (tree.form)
return;
var formAttributes = [];
var inputAttributes = [];
var prompt = "This is a searchable index. Enter search keywords: ";
for (var key in attributes) {
switch (attributes[key].nodeName) {
case 'action':
formAttributes.push({nodeName: 'action',
nodeValue: attributes[key].nodeValue});
break;
case 'prompt':
prompt = attributes[key].nodeValue;
break;
case 'name':
break;
default:
inputAttributes.push({nodeName: attributes[key].nodeName,
nodeValue: attributes[key].nodeValue});
}
}
inputAttributes.push({nodeName: 'name', nodeValue: 'isindex'});
this.processStartTag('form', formAttributes);
this.processStartTag('hr');
this.processStartTag('label');
this.processCharacters(new CharacterBuffer(prompt));
this.processStartTag('input', inputAttributes);
this.processEndTag('label');
this.processStartTag('hr');
this.processEndTag('form');
};
modes.inBody.startTagTextarea = function(name, attributes) {
tree.insertElement(name, attributes);
tree.tokenizer.setState(Tokenizer.RCDATA);
tree.originalInsertionMode = tree.insertionModeName;
tree.shouldSkipLeadingNewline = true;
tree.framesetOk = false;
tree.setInsertionMode('text');
};
modes.inBody.startTagIFrame = function(name, attributes) {
tree.framesetOk = false;
this.startTagRawText(name, attributes);
};
modes.inBody.startTagRawText = function(name, attributes) {
tree.processGenericRawTextStartTag(name, attributes);
};
modes.inBody.startTagSelect = function(name, attributes) {
tree.reconstructActiveFormattingElements();
tree.insertElement(name, attributes);
tree.framesetOk = false;
var insertionModeName = tree.insertionModeName;
if (insertionModeName == 'inTable' ||
insertionModeName == 'inCaption' ||
insertionModeName == 'inColumnGroup' ||
insertionModeName == 'inTableBody' ||
insertionModeName == 'inRow' ||
insertionModeName == 'inCell') {
tree.setInsertionMode('inSelectInTable');
} else {
tree.setInsertionMode('inSelect');
}
};
modes.inBody.startTagMisplaced = function(name, attributes) {
tree.parseError('unexpected-start-tag-ignored', {name: name});
};
modes.inBody.endTagMisplaced = function(name) {
tree.parseError("unexpected-end-tag", {name: name});
};
modes.inBody.endTagBr = function(name) {
tree.parseError("unexpected-end-tag-treated-as", {originalName: "br", newName: "br element"});
tree.reconstructActiveFormattingElements();
tree.insertElement(name, []);
tree.popElement();
};
modes.inBody.startTagOptionOptgroup = function(name, attributes) {
if (tree.currentStackItem().localName == 'option')
tree.popElement();
tree.reconstructActiveFormattingElements();
( run in 0.949 second using v1.01-cache-2.11-cpan-0b5f733616e )