Module: CGI::Html4Fr

Defined in:
lib/cgi.rb

Overview

Mixin module for generating HTML version 4 with framesets.

Instance Method Summary collapse

Instance Method Details

#doctypeObject

The DOCTYPE declaration for this version of HTML



2217
2218
2219
# File 'lib/cgi.rb', line 2217

def doctype
  %|<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">|
end

#element_initObject

Initialise the HTML generation methods for this version.



2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
# File 'lib/cgi.rb', line 2222

def element_init
  methods = ""
  # - -
  for element in %w[ FRAMESET ]
    methods += <<-BEGIN + nn_element_def(element) + <<-END
      end
    END
  end

  # - O EMPTY
  for element in %w[ FRAME ]
    methods += <<-BEGIN + nOE_element_def(element) + <<-END
      end
    END
  end
  eval(methods)
end