示例#1
0
 def __init__(self):
     '''
     Constructor
     '''
     super(head, self).__init__('head')
     self.__title = element('title')
     self.append(self.title)
示例#2
0
 def __init__(self, ie_compatability_mode=False):
     '''
     Constructor
     '''
     self.__doctype = doctype()
     self.append(self.doctype)
     
     self.__html = element('html')
     self.append(self.html)
     
     self.__head = head()
     self.html.append(self.head)
     
     self.__body = element('body')
     self.html.append(self.body)
     
     if ie_compatability_mode:
         self.head.appendHTML('''<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />''')