blob: ba3bdab94f6e2226c97e1ae23b1e4720ec17ae50 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 1998, 2008 IBM Corporation and Others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Goh KONDOH - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.model.internal.dom.html.impl;
import org.w3c.dom.Node;
import org.w3c.dom.html.HTMLFieldSetElement;
import org.w3c.dom.html.HTMLFormElement;
public class SHFieldSetElement extends SHElement implements HTMLFieldSetElement {
protected SHFieldSetElement(String tagName, SHDocument doc) {
super(tagName, doc);
}
public HTMLFormElement getForm() {
for (Node ret = getParentNode(); ret != null; ret = ret.getParentNode()) {
if (ret instanceof HTMLFormElement)
return (HTMLFormElement) ret;
}
return null;
}
}