private boolean isQuirksDocType() { final DocumentType docType = getPage().getDoctype(); if (docType != null) { final String systemId = docType.getSystemId(); if (systemId != null) { if ("http://www.w3.org/TR/html4/strict.dtd".equals(systemId)) { return false; } if ("http://www.w3.org/TR/html4/loose.dtd".equals(systemId)) { final String publicId = docType.getPublicId(); if ("-//W3C//DTD HTML 4.01 Transitional//EN".equals(publicId)) { return false; } } if ("http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd".equals(systemId) || "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd".equals(systemId)) { return false; } } else if (docType.getPublicId() == null) { return docType.getName() == null; } } return true; }
/** * Gets the JavaScript property "doctype" for the document. * @return the DocumentType of the document */ public SimpleScriptable jsxGet_doctype() { final Object documentType = getPage().getDoctype(); if (documentType == null) { return null; } return getScriptableFor(documentType); }
/** * Gets the JavaScript property "doctype" for the document. * @return the DocumentType of the document */ public SimpleScriptable jsxGet_doctype() { final Object documentType = getPage().getDoctype(); if (documentType == null) { return null; } return getScriptableFor(documentType); }
/** * Gets the JavaScript property "doctype" for the document. * @return the DocumentType of the document */ public SimpleScriptable jsxGet_doctype() { final Object documentType = getPage().getDoctype(); if (documentType == null) { return null; } return getScriptableFor(documentType); }
private boolean isQuirksDocType() { final DocumentType docType = getPage().getDoctype(); if (docType != null) { final String systemId = docType.getSystemId(); if (systemId != null) { if ("http://www.w3.org/TR/html4/strict.dtd".equals(systemId)) { return false; } if ("http://www.w3.org/TR/html4/loose.dtd".equals(systemId)) { final String publicId = docType.getPublicId(); if ("-//W3C//DTD HTML 4.01 Transitional//EN".equals(publicId)) { return false; } } if ("http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd".equals(systemId) || "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd".equals(systemId)) { return false; } } else if (docType.getPublicId() == null) { return docType.getName() == null; } } return true; }
final org.w3c.dom.DocumentType docType = getPage().getDoctype(); if (docType != null) { final String publicId = docType.getPublicId();
final org.w3c.dom.DocumentType docType = getPage().getDoctype(); if (docType != null) { final String publicId = docType.getPublicId();
final org.w3c.dom.DocumentType docType = getPage().getDoctype(); if (docType != null) { final String publicId = docType.getPublicId();
/** * Returns the document type node that specifies the DTD for this document. * @return the document type node that specifies the DTD for this document */ @JsxGetter public XMLDOMDocumentType getDoctype() { final Object documentType = getPage().getDoctype(); if (documentType == null) { return null; } return (XMLDOMDocumentType) getScriptableFor(documentType); }
/** * Gets the JavaScript property {@code doctype} for the document. * @return the DocumentType of the document */ @JsxGetter public SimpleScriptable getDoctype() { final Object documentType = getPage().getDoctype(); if (documentType == null) { return null; } return getScriptableFor(documentType); }
/** * Gets the JavaScript property {@code doctype} for the document. * @return the DocumentType of the document */ @JsxGetter public SimpleScriptable getDoctype() { final Object documentType = getPage().getDoctype(); if (documentType == null) { return null; } return getScriptableFor(documentType); }
/** * Returns the document type node that specifies the DTD for this document. * @return the document type node that specifies the DTD for this document */ @JsxGetter public XMLDOMDocumentType getDoctype() { final Object documentType = getPage().getDoctype(); if (documentType == null) { return null; } return (XMLDOMDocumentType) getScriptableFor(documentType); }