Project

General

Profile

Bug #6632 ยป lib_cgi_html-upper_case_elements.patch

consistently use upper case - stomar (Marcus Stollsteimer), 07/03/2012 01:44 AM

View differences:

html.rb (Arbeitskopie)
848 848
      methods = ""
849 849
      # - -
850 850
      for element in %w[ A TT I B U STRIKE BIG SMALL SUB SUP EM STRONG
851
          DFN CODE SAMP KBD VAR CITE FONT ADDRESS DIV center MAP
852
          APPLET PRE XMP LISTING DL OL UL DIR MENU SELECT table TITLE
851
          DFN CODE SAMP KBD VAR CITE FONT ADDRESS DIV CENTER MAP
852
          APPLET PRE XMP LISTING DL OL UL DIR MENU SELECT TABLE TITLE
853 853
          STYLE SCRIPT H1 H2 H3 H4 H5 H6 TEXTAREA FORM BLOCKQUOTE
854 854
          CAPTION ]
855 855
        methods += <<-BEGIN + nn_element_def(element) + <<-END
......
870 870
      end
871 871

  
872 872
      # O O or - O
873
      for element in %w[ HTML HEAD BODY P PLAINTEXT DT DD LI OPTION tr
874
          th td ]
873
      for element in %w[ HTML HEAD BODY P PLAINTEXT DT DD LI OPTION TR
874
          TH TD ]
875 875
        methods += <<-BEGIN + nO_element_def(element) + <<-END
876 876
          def #{element.downcase}(attributes = {})
877 877
        BEGIN