mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
Fix access to documentElement
This commit is contained in:
parent
c1c08db9b3
commit
ef7f0a5b52
3 changed files with 9 additions and 5 deletions
|
|
@ -32,12 +32,12 @@
|
||||||
"Construct a new clog-document. (Private)"
|
"Construct a new clog-document. (Private)"
|
||||||
(make-instance
|
(make-instance
|
||||||
'clog-document :connection-id connection-id :html-id "document"
|
'clog-document :connection-id connection-id :html-id "document"
|
||||||
:document-element (make-instance 'clog-obj
|
:document-element (make-instance 'clog-element
|
||||||
:connection-id connection-id
|
:connection-id connection-id
|
||||||
:html-id "head")
|
:html-id "documentElement")
|
||||||
:head-element (make-instance 'clog-obj
|
:head-element (make-instance 'clog-element
|
||||||
:connection-id connection-id
|
:connection-id connection-id
|
||||||
:html-id "documentElement")))
|
:html-id "head")))
|
||||||
;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; document-element ;;
|
;; document-element ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
(defgeneric set-body (clog-document body)
|
(defgeneric set-body (clog-document body)
|
||||||
(:documentation "Set the body slot after creating the
|
(:documentation "Set the body slot after creating the
|
||||||
clog-documentation object. (Private)"))
|
clog-document object. (Private)"))
|
||||||
|
|
||||||
(defmethod set-body ((obj clog-document) body)
|
(defmethod set-body ((obj clog-document) body)
|
||||||
(setf (slot-value obj 'body-element) body))
|
(setf (slot-value obj 'body-element) body))
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,8 @@ $( document ).ready(function() {
|
||||||
var r = /[?&]?([^=]+)=([^&]*)/g;
|
var r = /[?&]?([^=]+)=([^&]*)/g;
|
||||||
|
|
||||||
clog['body']=document.body;
|
clog['body']=document.body;
|
||||||
|
clog['head']=document.head;
|
||||||
|
clog['documentElement']=document.documentElement;
|
||||||
clog['window']=window;
|
clog['window']=window;
|
||||||
clog['navigator']=navigator;
|
clog['navigator']=navigator;
|
||||||
clog['document']=window.document;
|
clog['document']=window.document;
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,8 @@ $( document ).ready(function() {
|
||||||
var r = /[?&]?([^=]+)=([^&]*)/g;
|
var r = /[?&]?([^=]+)=([^&]*)/g;
|
||||||
|
|
||||||
clog['body']=document.body;
|
clog['body']=document.body;
|
||||||
|
clog['head']=document.head;
|
||||||
|
clog['documentElement']=document.documentElement;
|
||||||
clog['window']=window;
|
clog['window']=window;
|
||||||
clog['navigator']=navigator;
|
clog['navigator']=navigator;
|
||||||
clog['document']=window.document;
|
clog['document']=window.document;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue